package com.tutucms.common.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Title:
 *
 * @author WangXuDong
 * @version 1.0
 */
public class ThreadPoolUtil {
    private static final ExecutorService threadPool = Executors.newCachedThreadPool();

    public static void submintThread(Runnable runnable) throws Exception {
        threadPool.execute(runnable);
    }

    public static void shutDownNow() {
        threadPool.shutdownNow();
    }
}
